<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--引入jstl标签库--%>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/20
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>

<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        td{
            border: 1px solid red;
        }
    </style>
</head>
<body>
    <form action="/web03/jspDemo02" method="get">
        <input type="submit" value="打印数据表格" name="aaa">
    </form>
    <table style="border: 1px solid red">
        <%
            for (int i = 0; i < 3; i++) {

            }
        %>
        <tr>
            <td>编号</td>
            <td>用户名</td>
            <td>用户密码</td>
        </tr>
        <c:forEach items="${list}" var="i">
            <tr>

                <td>
                        ${i.id}
                </td>
                <td>
                        ${i.username}
                </td>
                <td>
                        ${i.password}
                </td>

            </tr>
        </c:forEach>
    </table>
</body>
</html>
